{extend name="base"}
{block name="content"}
<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Push/index')}">平台管理</a></li>
			<li><a href="{:url('Push/add')}">添加推送平台</a></li>
		</ul>
		<form method="post" class="js-ajax-form" action="term/listorders">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>平台标识</th>
						<th>平台名称</th>
						<th>平台介绍</th>
						<th>推送次数</th>
						<th>当着状态</th>
						<th width="120">管理</th>
					</tr>
				</thead>
				<tbody>
					{foreach name="list" item="vo"}
					<tr>
						<td>{$vo.id}</td>
						<td><input type="text" value="{$vo.handle}" class="ajax-text" data="Push|handle|id|{$vo.id}" action="{:url('Push/ajaxdata')}"/></td>
						<td><input type="text" value="{$vo.name}" class="ajax-text" data="Push|name|id|{$vo.id}" action="{:url('Push/ajaxdata')}"/></td>
						<td><input type="text" value="{$vo.desc}" class="ajax-text" data="Push|desc|id|{$vo.id}" action="{:url('Push/ajaxdata')}"/></td>
						<td>{$vo.times}</td>
						<td>
							{eq name="vo.status" value="1"}
                        	<img src="/data/assets/images/btn_enable.png" class="ajax-status" data="Push|status|id|{$vo.id}" action="{:url('Push/ajaxdata')}"/>
                        	{else/}
                        	<img src="/data/assets/images/btn_disable.gif" class="ajax-status" data="Push|status|id|{$vo.id}" action="{:url('Push/ajaxdata')}"/>
                        	{/eq}
                        </td>
						<td>
							<a href="{:url('Push/config',['id'=>$vo.id,'handle'=>$vo.handle])}">配置</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
			<div class="pagination text-center">{$list->render()}</div>
		</form>
	</div>
<script src="__THEMES__/js/common.js"></script>
{/block}